package us.kg.kotoriforest.springmvc.controller;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import us.kg.kotoriforest.springmvc.pojo.User;

/**
 * @author Kotori rotroutine@163.com
 * @since 2025/1/20
 */
@Controller
public class TestController {

    @RequestMapping("/test/tostring")
    @ResponseBody
    public User testReturnObject(HttpServletResponse resp) {
        return new User(11, "张三", 18, "男", "1111@email.com");
    }
}
